<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<link href="style/desktop.css" rel="stylesheet" type="text/css">

<table>
	<tr>
		<td>
			<div class="noticeDisplayDive">
				
					<div id="rollText">
					<s:iterator value="%{noticelist}" id="notice" status="sss">
						<div id="rollDiv" style="width: 100%;">
							<div class="noticeItem" style="width: 100%;">
								<h1 class="noticeSubject"
									title="<s:property value="#notice.title" />">
									<s:property value="#sss.count" />. 
									<a href="lookNotice.do?id=<s:property value="#notice.id"/>"
										title="<s:property value="#notice.title" />"> <s:if
											test="#notice.title.length()>20">
											<s:property value="#notice.title.substring(0,20)" />...
									</s:if> <s:else>
											<s:property value="#notice.title" />
										</s:else> </a>
								</h1>
								<br>
								<div align="center" class="noticesubSubject">
									<span>发布人：<s:property value="#notice.releaser" />
									</span>
									<br />
									<span>发布日期：<s:property value="#notice.releasedate" /> </span>
								</div>
								<br>
								<!--<span class="noticeContent"> 
								  <a href="lookNotice.do?id=<s:property value="#notice.id"/>"> 
								    <s:if test="#notice.content.length()>250">
										<s:property value="#notice.content.substring(0,250)" escape="false" />...
									</s:if>  
									<s:else>
										<s:property value="#notice.content" escape="false" />
									</s:else> 
								   </a> 
								  </span>
								 --><div class="noticeContent" title="<s:property value="#notice.content" escape="true"/>">
									<p style="line-height: 20px;">
										<s:if test="#notice.content.length()>150">
										<s:property value="#notice.content.substring(0,150)" escape="false"/>...
										</s:if>
										<s:else>
										<s:property value="#notice.content" escape="false"/>
										</s:else>
									</p>
								 </div>  
							</div>

						</div>
						</s:iterator>
					</div>
				
			</div>
		</td>

	</tr>
	<tr>
		<td>
			<div class="moreDiv" style="width: 100%;">
				<span><a href="noticeList.do?action=indexpages"
					onclick="App.clickTopTab('SearchNotice')">更多...</a> </span>
			</div>
		</td>

	</tr>
</table>



<script>
	    var notices=document.getElementById("rollDiv").getElementsByTagName("div");
	    if(notices.length>=2){
			var scrollup = new ScrollText("rollText");
			scrollup.LineHeight = 286;
			scrollup.Amount = 1;
			scrollup.Start();
	    }
	</script>



